<template>
  <div id="userLayout">
    <div class="container">
      <div class="top">
        <div class="title-view">
          <div class="title">
            Ant Design Basic
          </div>
          <div class="desc">
            version 0.1.0
          </div>
        </div>
      </div>
      <router-view />
      <div class="footer">
        <div class="copyright">
          Copyright ©️ 2020
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'UserLayout',
  mounted() {}
}
</script>

<style lang="less" scoped>
#userLayout {
  width: 100%;
  min-height: 100vh;
  background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  position: relative !important;
  width: 100%;
  background-size: 100%;
  padding: 110px 0 144px;

  a {
    text-decoration: none;
  }

  .top {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-bottom: 108px;
    overflow: hidden;

    .title-view {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-left: 6px;

      .title {
        font-size: 35px;
        color: rgba(0, 0, 0, 0.85);
        font-weight: 700;
      }

      .desc {
        color: rgba(80, 80, 80, 1);
        font-size: 15px;
      }
    }
  }

  .main {
    min-width: 260px;
    width: 368px;
    margin: 0 auto;
  }

  .footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 0 16px;
    margin: 48px 0 24px;
    text-align: center;

    .copyright {
      color: rgba(0, 0, 0, 0.45);
      font-size: 14px;
    }
  }
}
</style>
